package com.yenlien.traceyun.control.dao;

import com.yenlien.traceyun.control.entity.Accredit;
import com.yenlien.traceyun.webase.dao.BaseJpaDao;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface AccreditDao extends BaseJpaDao<Accredit> {
    Accredit findById(String id);

    List<Accredit> findByAccreditNameLike(String accreditName);


    Page<Accredit> findByCompanyId(String companyId, Pageable pageable);
}
